package org.ww.common.exception;

/**
 * @program: gmall
 * @description: 锁库存异常
 * @author: ww
 * @create: 2024-05-29 13:59
 **/

public class StockLockException extends RuntimeException {

    private Long skuId;

    public StockLockException(Long skuId) {
        super("商品skuId:" + skuId + "锁定库存失败");
    }

    public StockLockException() {
        super("库存无货");
    }


    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
